import 'package:flutter_nb_net/flutter_net.dart';


class FunctionShowResp extends BaseNetModel {
  int? code;
  String? msg;
  List<FunctionDetails>? data;

  FunctionShowResp({this.code, this.msg, this.data});
// 状态[1-显示，0-隐藏]
  @override
  fromJson(Map<String, dynamic> json) {
    return FunctionShowResp(
      code: json['code'],
      msg: json['msg'],
      data: json['data'] != null ? List<FunctionDetails>.from(json['data'].map((x) => FunctionDetails().fromJson(x))) : null,
    );
  }
}

class FunctionDetails extends BaseNetModel {
  int? functionId;
  String? functionName;
  int? functionStatus;

  FunctionDetails({
    this.functionId,
    this.functionName,
    this.functionStatus,
   });

  @override
  fromJson(Map<String, dynamic> json) {
    return FunctionDetails(
        functionId: json['functionId'] ?? '',
        functionName: json['functionName'] ?? '',
        functionStatus: json['functionStatus'] ?? '',
    );
  }
}


